package com.alibaba.algo.controller.user;

import com.alibaba.algo.apiimpl.user.SysEmployeeOrgServiceImpl;
import com.alibaba.algo.cooperation.common.BaseResult;
import com.alibaba.algo.cooperation.usercomponent.vo.req.user.SelectEmployeeOrgByOrgIdRequestVO;
import com.alibaba.algo.cooperation.usercomponent.vo.req.user.SelectEmployeeRequestVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 类SysEmployeeOrgController.java的实现描述：员工和组织关联表 Controller
 *
 * @author nieganggang 2021-03-12 16:08:17
 */
@RestController
@RequestMapping(value = "/usercenter-admin-app/admin/sysEmployeeOrg")
public class SysEmployeeOrgController {

    @Autowired
    private SysEmployeeOrgServiceImpl sysEmployeeOrgService;

    @PostMapping(value = "selectListByOrgId")
    BaseResult selectListByOrgId(@RequestBody SelectEmployeeOrgByOrgIdRequestVO vo) {
        return sysEmployeeOrgService.selectListByOrgId(vo);
    }

    @PostMapping(value = "selectEmployeeListInOrgByName")
    BaseResult selectEmployeeListInOrgByName(@RequestBody SelectEmployeeRequestVO vo) {
        return sysEmployeeOrgService.selectEmployeeListInOrgByName(vo);
    }
}
